home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
MISCELLA
/
SPLINE10.ZIP
/
VBLIB.BAS
< prev
Wrap
BASIC Source File
|
1993-12-27
|
461b
|
17 lines
'Copyright (C) Andrew S. Dean 1993
Option Explicit
Sub CenterForm (F As Form)
' Center the specified form within the screen
F.Move (Screen.Width - F.Width) \ 2, (Screen.Height - F.Height) \ 2
End Sub ' CenterForm()
Sub UnloadOnEscape (KeyAscii As Integer)
' Escape Key disables all dialogs.
' This relies on KeyPreview being set for the form.
If (KeyAscii = KEY_ESCAPE) Then
Unload Screen.ActiveForm
End If
End Sub